package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class MiniplayerRenderer implements Sequenceable, Serializable {

    @SerializedName("playbackMode")
    private String playbackMode;


    public static final Sequenceable.Producer<MiniplayerRenderer> CREATOR = new Producer<MiniplayerRenderer>() {
        @Override
        public MiniplayerRenderer createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            MiniplayerRenderer miniplayerRenderer = new MiniplayerRenderer();
            miniplayerRenderer.unmarshalling(parcel);
            return miniplayerRenderer;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.playbackMode);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.playbackMode=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "MiniplayerRenderer{" +
                "playbackMode='" + playbackMode + '\'' +
                '}';
    }

    public String getPlaybackMode() {
        return playbackMode;
    }

    public void setPlaybackMode(String playbackMode) {
        this.playbackMode = playbackMode;
    }
}
